package com.wxg.gui.baidu;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.ScrollPaneConstants;

public class WordExplainResultPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8211469556980775713L;
	
	private JTextArea resultTextArea = new JTextArea();
	
	/**
	 * Create the panel.
	 */
	public WordExplainResultPanel() {
		setLayout(new BorderLayout(0, 0));
		resultTextArea.setEditable(false);
		resultTextArea.setLineWrap(true);
		resultTextArea.setWrapStyleWord(true);
		
		JScrollPane scrollpanel = new JScrollPane(resultTextArea);
		
		// 不显示水平滚动条
		scrollpanel.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
		add(scrollpanel, BorderLayout.CENTER);
	}

	public JTextArea getResultTextArea() {
		return resultTextArea;
	}

}
